from zuokao3moni.config import config
from selenium.webdriver.common.by import By

class Page(config):
    please_login=(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    def login_please(self):
        self.click(self.please_login)

    login_dy1=(By.XPATH,'/html/body/div[4]/div/div[1]/div[1]/span[1]')
    def dy1(self):
        self.text(self.login_dy1)

    user_send=(By.NAME,'username')
    def send_user(self):
        self.send_keys(self.user_send,'13811033962')

    power_send=(By.NAME,'password')
    def send_power(self):
        self.send_keys(self.power_send,'123456')

    button_login=(By.CLASS_NAME,'finish-btn')
    def login_button(self):
        self.click(self.button_login)